﻿<div id="dialog-modal">
</div>
<div class="inner-container clearfix">
    <div id="userbox">
        <div class="inner">
            <%--<a href="Default.aspx" style="font-size: 35px; color: White; font-weight: bold; cursor: pointer;">
                BVS</a><strong>&nbsp;System</strong>--%>
            <div class="nb_boxes clearfix">
                <a onclick="doPopupReminder()" class="label ttip_b" title="Reminder" id="reminder"><i
                    class="splashy-calendar_week"></i></a><a href="Default.aspx" class="label ttip_b"
                        title="Reminder" id="A1"><i class="splashy-home"></i></a>
                <script>
                    $(function () {
                        var nRMDDisplay = 0;
                        <%if(Session["sesNotificationRMD"]!=null){ %>
                        nRMDDisplay = '<%Response.Write(Session["sesNotificationRMD"].ToString()); %>';
                        <%} %>
                        if (nRMDDisplay > 0) doPopupReminder();
                    });
                    function doPopupReminder() {
                        $(function () {
                            _url = "cal_events.aspx";
                            _html = "<iframe id=\"url_doctor\" scrolling=\"no\" onload=\"jQuery(this).height(jQuery(this).contents().height());\" style=\"width:100%;border:0;height:200px\" name=\"url_doctor\" src=\"" + _url + "\"></iframe>";
                            jQuery("#dialog-modal").html(_html);
                            $("#dialog:ui-dialog").dialog("destroy");
                            $("#dialog-modal").dialog({
                                canMinimize: true,
                                position: ['right', 'bottom'],
                                minimize: true,
                                dialogClass: 'fixed-position',
                                //canMaximize:true,
                                title: 'REMINDERS',
                                //modal: true,
                                height: 280,
                                width: 500,
                                open: function () { $('#dialog-modal iframe').height($(this).height() - 40); $('#dialog-modal iframe').width($(this).width() - 10); },
                                resize: function () { },
                                resizeStop: function () {
                                    $('iframe').show();
                                    $('#dialog-modal iframe').height($(this).height() - 10);
                                    $('#dialog-modal iframe').width($(this).width() - 10);
                                }
                            });
                        });
                    }
                </script>
            </div>
        </div>
        <div style="color: white; padding-left: 50px; padding-right: 10px; padding-bottom: 5px; width: 120px;">
            <a style="text-decoration: underline;" href="AdminUser.aspx?AdminUserID=<%=Session["logined_id"] %>">Hi
                <%=Session["logined_user"].ToString() %></a> / <a style="text-decoration: underline;"
                    href="logout.aspx">Log out</a>
        </div>
    </div>
    <div id="block-nice_menus-1" class="block block-nice_menus">
        <div class="content">
            <ul class="nice-menu nice-menu-down" id="nav">
                <li><a href="#" class="current"><span>Source</span></a>
                    <ul>
                        <%if ((Session["LocalCharges"] != null) && (int.Parse(Session["LocalCharges"].ToString()) >= 1)){%>
                        <li id="Li7"><a href="LocalCharge.aspx">Local</a></li>
                        <%} %>
                        <%if ((Session["LocalChargesCalc"] != null) && (int.Parse(Session["LocalChargesCalc"].ToString()) >= 1)){%>
                        <li id="Li23"><a href="LocalCharge.Calc.aspx">Local Calculator</a></li>
                        <%} %>
                        <%if ((Session["LocalCharges"] != null) && (int.Parse(Session["LocalCharges"].ToString()) >= 1)){%>
                        <li id="Li7"><a href="LocalCharges.aspx">Local (new)</a></li>
                        <%} %>
                        <%if ((Session["carrs"] != null) && (int.Parse(Session["carrs"].ToString()) >= 1)){%>
                        <li id="Li1"><a href="Carrs.aspx">Carrier</a></li>
                        <%} %>
                        <%if ((Session["ports"] != null) && (int.Parse(Session["ports"].ToString()) >= 1)){%>
                        <li id="Li2"><a href="Ports.aspx">Port</a></li>
                        <%} %>
                        <%if ((Session["Goods"] != null) && (int.Parse(Session["Goods"].ToString()) >= 1)){%>
                        <li id="Li24"><a href="Goods.aspx">Goods</a> </li>
                        <%} %>
                        <%if ((Session["GoodsType"] != null) && (int.Parse(Session["GoodsType"].ToString()) >= 1)){%>
                        <li id="Li26"><a href="GoodsType.aspx">Type</a> </li>
                        <%} %>
                        <%if ((Session["Currency"] != null) && (int.Parse(Session["Currency"].ToString()) >= 1)){%>
                        <li id="Li26"><a href="Currency.aspx">Currency</a> </li>
                        <%} %>
                        <%if ((Session["ChargeType"] != null) && (int.Parse(Session["ChargeType"].ToString()) >= 1)){%>
                        <li id="Li26"><a href="ChargeType.aspx">Charge Type</a> </li>
                        <%} %>
                        <%if ((Session["UnitType"] != null) && (int.Parse(Session["UnitType"].ToString()) >= 1)){%>
                        <li id="Li26"><a href="UnitType.aspx">Unit Type</a> </li>
                        <%} %>
                        <%if ((Session["ServiceAreas"] != null) && (int.Parse(Session["ServiceAreas"].ToString()) >= 1)){%>
                        <li><a href="ServiceAreas.aspx"><span>Service Areas</span></a></li>
                        <%} %>
                        <%if ((Session["Region"] != null) && (int.Parse(Session["Region"].ToString()) >= 1)){%>
                        <li><a href="Region.aspx"><span>Region</span></a></li>
                        <%} %>
                        <%if ((Session["Trucker"] != null) && (int.Parse(Session["Trucker"].ToString()) >= 1)){%>
                        <li><a href="Trucker.aspx"><span>Trucker</span></a></li>
                        <%} %>
                        <%if ((Session["Province"] != null && int.Parse(Session["Province"].ToString()) >= 1)
                              ||(Session["Country"] != null && int.Parse(Session["Country"].ToString()) >= 1)){%>
                        <li><a href="#" class="current"><span>Địa danh</span></a>
                            <ul>
                                <%if ((Session["Country"] != null) && (int.Parse(Session["Country"].ToString()) >= 1)){%>
                                <li><a href="Countries.aspx" class="current"><span>Quốc gia</span></a></li>
                                <%} %>
                                <%if ((Session["Province"] != null) && (int.Parse(Session["Province"].ToString()) >= 1)){%>
                                <li><a href="Tinh.aspx" class="current"><span>Tỉnh (Thành phố)</span></a></li>
                                <li><a href="Huyen.aspx"><span>Quận (Huyện)</span></a></li>
                                <%} %>
                            </ul>
                        </li>
                        <%} %>
                        <%if ((Session["DomesticCosts"] != null) && (int.Parse(Session["DomesticCosts"].ToString()) >= 1)){%>
                        <li><a href="DomesticCosts.aspx" class="current"><span>Dịch vụ nội địa</span></a></li>
                        <%} %>
                        <%--<li><a href="#" class="current"><span>Nội địa</span></a>
                            <ul>
                                <%if ((Session["DomesticPrices"] != null) && (int.Parse(Session["DomesticPrices"].ToString()) >= 1)){%>
                                <li><a href="DomesticPrices.aspx" class="current"><span>Vận tải nội địa</span></a></li>
                                <%} %>
                                
                            </ul>
                        </li>--%>
                    </ul>
                </li>
                <li><a href="#" class="current"><span>Tìm giá</span></a>
                    <ul>
                        <%if ((Session["prices"] != null) && (int.Parse(Session["prices"].ToString()) >= 1)){%>
                        <li id="Li3"><a href="Prices.aspx">Pricing Port</a></li>
                        <%} %>
                        <%if ((Session["PriceAreasNew"] != null) && (int.Parse(Session["PriceAreasNew"].ToString()) >= 1)){%>
                        <li id="Li25"><a href="PriceAreasNew.aspx">Pricing Area</a></li>
                        <%} %>
                        <%if ((Session["TruckerPrice"] != null) && (int.Parse(Session["TruckerPrice"].ToString()) >= 1)){%>
                        <li id="Li21"><a href="TruckerPrice.aspx">Pricing Truck</a></li>
                        <%} %>
                        <%if ((Session["CheckRate"] != null) && (int.Parse(Session["CheckRate"].ToString()) >= 1)){%>
                        <li id="Li14"><a href="Prices.CheckRate.aspx">Check Rate</a></li>
                        <%} %>
                        <%-- <%if ((Session["CheckArea"] != null) && (int.Parse(Session["CheckArea"].ToString()) >= 1)){%>
                        <li id="Li19"><a href="Prices.SerArea.aspx">Check Region </a></li>
                        <%} %>--%>
                    </ul>
                </li>
                <li><a href="#" class="current"><span>Pricing For Sales</span></a>
                    <ul>
                        <%if ((Session["PricingOceanForSales"] != null) && (int.Parse(Session["PricingOceanForSales"].ToString()) >= 1)){%>
                        <li id="Li32"><a href="PricingOceanForSales.aspx">Ocean</a></li>
                        <%} %>
                        <%if ((Session["PricingRoadForSales"] != null) && (int.Parse(Session["PricingRoadForSales"].ToString()) >= 1)){%>
                        <li id="Li27"><a href="PricingRoadForSales.aspx">Road</a></li>
                        <%} %>
                    </ul>
                </li>
                <%if ((Session["coloader"] != null) && (int.Parse(Session["coloader"].ToString()) >= 1)){%>
                <li id="Li5"><a href="CoLoader.aspx">Co - Loader</a></li>
                <%} %>
                <%if ((Session["schedules"] != null) && (int.Parse(Session["schedules"].ToString()) >= 1)){%>
                <li id="Li6"><a href="Schedules.aspx">Tìm lịch tàu</a></li>
                <%} %>
                <%-- <%if ((Session["carrdocuments"] != null) && (int.Parse(Session["carrdocuments"].ToString()) >= 1))
                          {%>
                <li id="Li8"><a href="carrdocuments.aspx">CARR'SDOC&CUS&KETOAN</a></li>
                <%} %>--%>
                <li><a href="#" class="current"><span>Carriers Contact</span></a>
                    <ul>
                        <%if ((Session["CarrierSales"] != null) && (int.Parse(Session["CarrierSales"].ToString()) >= 1)){%>
                        <li><a href="CarrContact.aspx">CARR SALES</a></li>
                        <%} %>
                        <%if ((Session["CarrierCus"] != null) && (int.Parse(Session["CarrierCus"].ToString()) >= 1)){%>
                        <li><a href="carrdocuments.aspx?type=1"><span>CARR DOC</span></a></li>
                        <%} %>
                        <%if ((Session["CarrierDoc"] != null) && (int.Parse(Session["CarrierDoc"].ToString()) >= 1)){%>
                        <li><a href="carrdocuments.aspx?type=2"><span>CARR CUS</span></a></li>
                        <%} %>
                        <%if ((Session["CarrierAccnt"] != null) && (int.Parse(Session["CarrierAccnt"].ToString()) >= 1)){%>
                        <li><a href="carrdocuments.aspx?type=3"><span>CARR ACCNT</span></a></li>
                        <%} %>
                        <%if ((Session["CarrierOper"] != null) && (int.Parse(Session["CarrierOper"].ToString()) >= 1)){%>
                        <li><a href="carrdocuments.aspx?type=4"><span>CARR OPER </span></a></li>
                        <%} %>
                        <%if ((Session["CarrierDocImport"] != null) && (int.Parse(Session["CarrierDocImport"].ToString()) >= 1)){%>
                        <li><a href="carrdocuments.aspx?type=5"><span>CARR DOC NK </span></a></li>
                        <%} %>
                    </ul>
                </li>
                <li><a href="#" class="current"><span>Trucker Contact</span></a>
                    <ul>
                        <%if ((Session["TruckerSale"] != null) && (int.Parse(Session["TruckerSale"].ToString()) >= 1)){%>
                        <li><a href="TruckerSale.aspx">Trucker Sales</a></li>
                        <%} %>
                        <%if ((Session["TruckerAccnt"] != null) && (int.Parse(Session["TruckerAccnt"].ToString()) >= 1)){%>
                        <li><a href="TruckerAccnt.aspx">Trucker Accnt</a></li>
                        <%} %>
                    </ul>
                </li>
                <li><a href="#" class="current"><span>Quy trình</span></a>
                    <ul>
                        <%if ((Session["ProcessCus"] != null) && (int.Parse(Session["ProcessCus"].ToString()) >= 1)){%>
                        <li><a href="ProcessDescription.aspx?type=1" class="current"><span>CUS</span></a></li>
                        <%} %>
                        <%if ((Session["ProcessDoc"] != null) && (int.Parse(Session["ProcessDoc"].ToString()) >= 1)){%>
                        <li><a href="ProcessDescription.aspx?type=2" class="current"><span>DOC</span></a></li>
                        <%} %>
                        <li><a href="#" class="current"><span>SALES</span></a>
                            <ul>
                                <%if ((Session["ProcessSalesGD1"] != null) && (int.Parse(Session["ProcessSalesGD1"].ToString()) >= 1)){%>
                                <li><a href="ProcessDescription.aspx?type=31" class="current"><span>Giai đoạn 1</span></a></li>
                                <%} %>
                                <%if ((Session["ProcessSalesGD2"] != null) && (int.Parse(Session["ProcessSalesGD2"].ToString()) >= 1)){%>
                                <li><a href="ProcessDescription.aspx?type=32" class="current"><span>Giai đoạn 2</span></a></li>
                                <%} %>
                                <%if ((Session["ProcessSalesGD3"] != null) && (int.Parse(Session["ProcessSalesGD3"].ToString()) >= 1)){%>
                                <li><a href="ProcessDescription.aspx?type=3" class="current"><span>Giai đoạn 3</span></a></li>
                                <%} %>
                            </ul>
                        </li>
                        <%if ((Session["ProcessAccnt"] != null) && (int.Parse(Session["ProcessAccnt"].ToString()) >= 1)){%>
                        <li><a href="ProcessDescription.aspx?type=4" class="current"><span>ACCNT</span></a></li>
                        <%} %>
                        <%if ((Session["processregulation"] != null) && (int.Parse(Session["processregulation"].ToString()) >= 1)){%>
                        <li><a href="ProcessDescription.aspx?type=5" class="current"><span>Nội quy công ty</span></a></li>
                        <%} %>
                        <%if ((Session["ProcessChooseProfile"] != null) && (int.Parse(Session["ProcessChooseProfile"].ToString()) >= 1)){%>
                        <li><a href="ProcessDescription.aspx?type=6" class="current"><span>Chọn Hồ Sơ</span></a></li>
                        <%} %>
                        <%if ((Session["ProcessRecruitmentRequirements"] != null) && (int.Parse(Session["ProcessRecruitmentRequirements"].ToString()) >= 1)){%>
                        <li><a href="ProcessDescription.aspx?type=7" class="current"><span>Yêu Cầu Tuyển Dụng</span></a></li>
                        <%} %>
                        <%if ((Session["ProcessFreightGuide"] != null) && (int.Parse(Session["ProcessFreightGuide"].ToString()) >= 1)){%>
                        <li><a href="ProcessDescription.aspx?type=8" class="current"><span>Pricing</span></a></li>
                        <%} %>
                        <%if ((Session["ProcessTruckingGuide"] != null) && (int.Parse(Session["ProcessTruckingGuide"].ToString()) >= 1)){%>
                        <li><a href="ProcessDescription.aspx?type=9" class="current"><span>Operation</span></a></li>
                        <%} %>
                        <%if ((Session["ProcessSalesRecruitment"] != null) && (int.Parse(Session["ProcessSalesRecruitment"].ToString()) >= 1)){%>
                        <li><a href="ProcessDescription.aspx?type=10" class="current"><span>Tuyển Sales</span></a></li>
                        <%} %>
                        <%if ((Session["ProcessDocRecruitment"] != null) && (int.Parse(Session["ProcessDocRecruitment"].ToString()) >= 1)){%>
                        <li><a href="ProcessDescription.aspx?type=11" class="current"><span>Tuyển DOC</span></a></li>
                        <%} %>
                        <%if ((Session["ProcessAccountingRecruitment"] != null) && (int.Parse(Session["ProcessAccountingRecruitment"].ToString()) >= 1)){%>
                        <li><a href="ProcessDescription.aspx?type=12" class="current"><span>Tuyển Kế toán</span></a></li>
                        <%} %>
                        <%if ((Session["ProcessTestSales"] != null) && (int.Parse(Session["ProcessTestSales"].ToString()) >= 1)){%>
                        <li><a href="ProcessDescription.aspx?type=13" class="current"><span>Test Sales</span></a></li>
                        <%} %>
                        <%if ((Session["ProcessTestDoc"] != null) && (int.Parse(Session["ProcessTestDoc"].ToString()) >= 1)){%>
                        <li><a href="ProcessDescription.aspx?type=14" class="current"><span>Test Doc</span></a></li>
                        <%} %>
                        <%if ((Session["ProcessTestAccounting"] != null) && (int.Parse(Session["ProcessTestAccounting"].ToString()) >= 1)){%>
                        <li><a href="ProcessDescription.aspx?type=15" class="current"><span>Test Kế toán</span></a></li>
                        <%} %>
                    </ul>
                </li>
                <li><a href="#" class="current"><span>FORM</span></a>
                    <ul>
                        <%if ((Session["formcus"] != null) && (int.Parse(Session["formcus"].ToString()) >= 1)){%>
                        <li><a href="FormDocuments.aspx?type=1" class="current"><span>FORM CUS</span></a></li>
                        <%} %>
                        <%if ((Session["formdoc"] != null) && (int.Parse(Session["formdoc"].ToString()) >= 1)){%>
                        <li><a href="FormDocuments.aspx?type=2" class="current"><span>FORM DOC</span></a></li>
                        <%} %>
                        <%if ((Session["formsales"] != null) && (int.Parse(Session["formsales"].ToString()) >= 1)){%>
                        <li><a href="FormDocuments.aspx?type=3" class="current"><span>FORM SALES</span></a></li>
                        <%} %>
                        <%if ((Session["formaccnt"] != null) && (int.Parse(Session["formaccnt"].ToString()) >= 1)){%>
                        <li><a href="FormDocuments.aspx?type=4" class="current"><span>FORM ACCNT</span></a></li>
                        <%} %>
                    </ul>
                </li>
                <%if ((Session["agentlist"] != null) && (int.Parse(Session["agentlist"].ToString()) >= 1))
                          {%>
                <li id="Li9"><a href="AgentList.aspx">Agent List</a></li>
                <%} %>
                <%if ((Session["OfferReport"] != null) && (int.Parse(Session["OfferReport"].ToString()) >= 1))
                          {%>
                <li id="Li20"><a href="OfferReport.aspx">Offer Report</a></li>
                <%} %>
                <li><a href="#" class="current"><span>CUST</span></a>
                    <ul>
                        <%if ((Session["customerrelation"] != null) && (int.Parse(Session["customerrelation"].ToString()) >= 1))
                          {%>
                        <li id="Li10"><a href="CustomerRelation.aspx">Relation</a></li>
                        <%} %>
                        <%if ((Session["ActiveCust"] != null) && (int.Parse(Session["ActiveCust"].ToString()) >= 1))
                          {%>
                        <li id="Li22"><a href="CustomerActive.aspx">Active</a></li>
                        <%} %>
                        <%if ((Session["customerstore"] != null) && (int.Parse(Session["customerstore"].ToString()) >= 1))
                          {%>
                        <li id="Li12"><a href="CustomerStore.aspx">Store</a></li>
                        <%} %>
                        <%if ((Session["customerlibrary"] != null) && (int.Parse(Session["customerlibrary"].ToString()) >= 1))
                          {%>
                        <li id="Li8"><a href="CustomerLibrary.aspx">Library</a></li>
                        <%} %>
                        <%if ((Session["customerlevel"] != null) && (int.Parse(Session["customerlevel"].ToString()) >= 1)){%>
                        <li id="Li13"><a href="CustomerLevel.aspx">Level</a></li>
                        <%} %>
                    </ul>
                </li>
                <%if ((Session["QuestionAnswer"] != null) && (int.Parse(Session["QuestionAnswer"].ToString()) >= 1)){%>
                <li><a href="answers.aspx"><span>Hỏi & đáp</span></a></li>
                <%} %>
                <li><a href="#" class="current"><span>Accounting</span></a>
                    <ul>
                        <%if ((Session["funds"] != null) && (int.Parse(Session["funds"].ToString()) >= 1)){%>
                        <li id="Li15"><a href="Funds.aspx"><span>Sổ quỹ</span></a></li>
                        <% }%>
                        <%if ((Session["borrowbook"] != null) && (int.Parse(Session["borrowbook"].ToString()) >= 1)){%>
                        <li><a href="borrowbook.aspx"><span>Sổ vay</span></a></li>
                        <% }%>
                        <%if ((Session["receivablesreport"] != null) && (int.Parse(Session["receivablesreport"].ToString()) >= 1)){%>
                        <li><a href="ReceivablesReport.aspx"><span>Báo cáo phải thu</span></a></li>
                        <% }%>
                        <%if ((Session["payablesreport"] != null) && (int.Parse(Session["payablesreport"].ToString()) >= 1)){%>
                        <li><a href="PayablesReport.aspx"><span>Báo cáo phải trả</span></a></li>
                        <% }%>
                        <%if ((Session["paymentrequest"] != null) && (int.Parse(Session["paymentrequest"].ToString()) >= 1)){%>
                        <li><a href="PaymentRequest.aspx"><span>Đề nghị thanh toán </span></a></li>
                        <% }%>
                        <%if ((Session["comsalereport"] != null) && (int.Parse(Session["comsalereport"].ToString()) >= 1)){%>
                        <li><a href="ComSaleReport.aspx"><span>Báo cáo Com Sale</span></a></li>
                        <% }%>
                        <%if ((Session["CostingSum"] != null) && (int.Parse(Session["CostingSum"].ToString()) >= 1)){%>
                        <li><a href="CostAccounting.aspx"><span>Costing Sum</span></a></li>
                        <% }%>
                        <%if ((Session["costinglist"] != null) && (int.Parse(Session["costinglist"].ToString()) >= 1)){%>
                        <li id="Li11"><a href="costinglist.aspx">Sale Costing</a></li>
                        <%} %>
                    </ul>
                </li>
                <li id="Li4">
                    <%if ((Session["cusdoc"] != null) && (int.Parse(Session["cusdoc"].ToString()) >= 1)){%>
                    <li><a href="CusDoc.aspx"><span>DOC</span></a></li>
                    <% }%>
                </li>
                <%if ((Session["JobDescriptions"] != null) && (int.Parse(Session["JobDescriptions"].ToString()) >= 1)){%>
                <li id="Li16"><a href="JobDescriptions.aspx"><span>Job Description</span></a></li>
                <% }%>
                <li id="Li17"><a href="MyDocuments.aspx"><span>My Documents</span></a></li>
                <%if ((Session["SuperAdmin"] != null && int.Parse(Session["SuperAdmin"].ToString()) >= 3)
                      ||(Session["ObjectActionLog"] != null && int.Parse(Session["ObjectActionLog"].ToString()) >=1)){%>
                <li><a href="#" class="current"><span>Quản trị người dùng</span></a>
                    <ul>
                        <%if ((Session["SuperAdmin"] != null) && (int.Parse(Session["SuperAdmin"].ToString()) >= 3)){%>
                        <li><a href="AdminUser.aspx" class="current"><span>Thêm người sử dụng</span></a></li>
                        <li><a href="AdminUserList.aspx"><span>Danh sách người sử dụng</span></a></li>
                        <li><a href="GroupPermissionList.aspx"><span>Danh sách nhóm quyền</span></a></li>
                        <%} %>
                        <%if ((Session["ObjectActionLog"] != null) && (int.Parse(Session["ObjectActionLog"].ToString()) >=1)){%>
                        <li><a href="ReportObjectsLog.aspx"><span>Object Action Log</span></a></li>
                        <%} %>
                        <%if ((Session["GeneralSetting"] != null) && (int.Parse(Session["GeneralSetting"].ToString()) >=1)){%>
                        <li><a href="GeneralSetting.aspx"><span>General Setting</span></a></li>
                        <%} %>
                        <%if ((Session["Annoucement"] != null) && (int.Parse(Session["Annoucement"].ToString()) >=1)){%>
                        <li><a href="Annoucement.aspx"><span>Annoucement</span></a></li>
                        <%} %>
                    </ul>
                </li>
                <%} %>
                <%if ((Session["tasking"] != null) && (int.Parse(Session["tasking"].ToString()) >= 1)){%>
                <li>
                    <li id="Li18"><a href="Tasking.aspx"><span>Tasking</span></a></li>
                    </a></li>
                <% }%>
            </ul>
        </div>
    </div>
</div>
